package cn.wolfcdoe.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.wolfcdoe.common.annotation.Excel;
import cn.wolfcdoe.common.core.domain.BaseEntity;

/**
 * 客户信息对象 bus_customer_message
 * 
 * @author zhuo
 * @date 2023-04-22
 */
public class BusCustomerMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String customerName;

    /** 客户电话 */
    @Excel(name = "客户电话")
    private String customerPhone;

    /** 车牌 */
    @Excel(name = "车牌")
    private String licensePlate;

    /** 录入人 */
    @Excel(name = "录入人")
    private String enteringPerson;

    /** 录入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "录入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date enteringTime;


    /*根据手机号码或者客户名字查询*/
    private String customerNameOrcustomerPhone;

    public String getCustomerNameOrcustomerPhone() {
        return customerNameOrcustomerPhone;
    }

    public void setCustomerNameOrcustomerPhone(String customerNameOrcustomerPhone) {
        this.customerNameOrcustomerPhone = customerNameOrcustomerPhone;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCustomerName(String customerName) 
    {
        this.customerName = customerName;
    }

    public String getCustomerName() 
    {
        return customerName;
    }
    public void setCustomerPhone(String customerPhone) 
    {
        this.customerPhone = customerPhone;
    }

    public String getCustomerPhone() 
    {
        return customerPhone;
    }
    public void setLicensePlate(String licensePlate) 
    {
        this.licensePlate = licensePlate;
    }

    public String getLicensePlate() 
    {
        return licensePlate;
    }
    public void setEnteringPerson(String enteringPerson) 
    {
        this.enteringPerson = enteringPerson;
    }

    public String getEnteringPerson() 
    {
        return enteringPerson;
    }
    public void setEnteringTime(Date enteringTime) 
    {
        this.enteringTime = enteringTime;
    }

    public Date getEnteringTime() 
    {
        return enteringTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("customerName", getCustomerName())
            .append("customerPhone", getCustomerPhone())
            .append("licensePlate", getLicensePlate())
            .append("enteringPerson", getEnteringPerson())
            .append("enteringTime", getEnteringTime())
            .toString();
    }
}
